<?php
class platesController extends \Hyang\Controller
{
    // 普通加载成功
   public function indexAction()
   {
       // 封装以后的结果
       $this->_indexAll21();return;

       echo $this->view->render('Plates/index',[
           'name'=>'Joshua Conero',
           'more'=>'Plates'
        ]);
   }
   public function _indexAll21()
   {
       $this->setVars([
           'name'=>'Joshua Conero',
           'more'=>'Plates:'.$this->getVEVersion()
       ]);
       $this->render();
   }
   public function _init()
   {
       $this->selfViewParam = array(
           'name' => 'Plates'
           //'name' => 'plates-855'
       );
   }
   // oracle 数据测试
   public function testAction()
   {
       $opt = [
            'type'=>'oracle',
            "dbname"   => "DES430",
            "user"     => "SA",
            "password" => "zotion123",
            "charset"  => "utf8"
        ];
        $db = new Emma($opt);
        debug([
            '存储过程'=>$db->query('call "jy_test_sp"()')
        ],true);
   }
}